Component({
    externalClasses: [ "title-class" ],
    properties: {
        title: {
            type: String
        }
    },
    data: {},
    methods: {
        backToPrevious: function() {
            getCurrentPages().length > 1 ? wx.navigateBack() : wx.reLaunch({
                url: "/pages/index/index"
            });
        }
    }
});